{% load kegweblib %}
<div class="kb-keg-session">
  <div class="kb-session-box-headline">
    <a href="{{ session.get_absolute_url}}">{{ session.GetTitle }}</a>
  </div>
  <div class="kb-session-box-detail">
    <div style="margin-top: 4px; margin-bottom: 4px;">
      <span class="kb-session-box-summary">
        {{session.summarize_drinkers|safe}}
      </span>
    </div>
    <div class="kb-award-box">
      <table border="0" width="100%" height="100%">
        <tr>
          <td align="center" valign="center">
            {% with session.GetStats.total_volume as volume_ml %}
            <div style="font-size: 1.4em;">
              {{ volume_ml|volume|floatformat:1 }}
            </div>
            <div style="font-size: 8px;">
              pint{{ volume_ml|pluralize }}
            </div>
            {% endwith %}
          </td>
        </tr>
      </table>
    </div>
    {% for chunk in session.UserChunksByVolume %}
      {% if chunk.user %}
      <div class="kb-session-box-icon">
        {% with chunk.user as drinker %}
          {% mugshot_box drinker 48 %}
        {% endwith %}
      </div>
      {% endif %}
    {% endfor %}
    <div class="clear"></div>
    <div class="kb-session-box-dateline">
      {{ session.starttime|date:"l, F j" }} at
      {{ session.starttime|date:"P" }}
    </div>
  </div>
</div>
